package com.wtwd.device.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2021-09-03
 */
@ApiModel(value="BloodPressureRecord对象", description="")
public class BloodPressureRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "设备ID",required = true)
    private Long deviceId;

    @ApiModelProperty(value = "时间，格式：yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date time;

    @ApiModelProperty(value = "平均收缩压",required = true)
    private Integer avgSystolic;

    @ApiModelProperty(value = "平均舒张压",required = true)
    private Integer avgDiastolic;

    @ApiModelProperty(value = "最小收缩压")
    private Integer minSystolic;

    @ApiModelProperty(value = "最小舒张压")
    private Integer minDiastolic;

    @ApiModelProperty(value = "最大收缩压")
    private Integer maxSystolic;

    @ApiModelProperty(value = "最大舒张压")
    private Integer maxDiastolic;

    private String bloodPressureInfo;

    @ApiModelProperty(value = "血压信息集合")
    private List<BloodPressureInfo> bloodPressureInfoList;

    @ApiModelProperty(value = "上传时间")
    private Long uploadTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getAvgSystolic() {
        return avgSystolic;
    }

    public void setAvgSystolic(Integer avgSystolic) {
        this.avgSystolic = avgSystolic;
    }

    public Integer getAvgDiastolic() {
        return avgDiastolic;
    }

    public void setAvgDiastolic(Integer avgDiastolic) {
        this.avgDiastolic = avgDiastolic;
    }

    public Integer getMinSystolic() {
        return minSystolic;
    }

    public void setMinSystolic(Integer minSystolic) {
        this.minSystolic = minSystolic;
    }

    public Integer getMinDiastolic() {
        return minDiastolic;
    }

    public void setMinDiastolic(Integer minDiastolic) {
        this.minDiastolic = minDiastolic;
    }

    public Integer getMaxSystolic() {
        return maxSystolic;
    }

    public void setMaxSystolic(Integer maxSystolic) {
        this.maxSystolic = maxSystolic;
    }

    public Integer getMaxDiastolic() {
        return maxDiastolic;
    }

    public void setMaxDiastolic(Integer maxDiastolic) {
        this.maxDiastolic = maxDiastolic;
    }

    public String getBloodPressureInfo() {
        return bloodPressureInfo;
    }

    public void setBloodPressureInfo(String bloodPressureInfo) {
        this.bloodPressureInfo = bloodPressureInfo;
    }

    public List<BloodPressureInfo> getBloodPressureInfoList() {
        return bloodPressureInfoList;
    }

    public void setBloodPressureInfoList(List<BloodPressureInfo> bloodPressureInfoList) {
        this.bloodPressureInfoList = bloodPressureInfoList;
    }

    public Long getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Long uploadTime) {
        this.uploadTime = uploadTime;
    }

    @Override
    public String toString() {
        return "BloodPressureRecord{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", time=" + time +
                ", avgSystolic=" + avgSystolic +
                ", avgDiastolic=" + avgDiastolic +
                ", minSystolic=" + minSystolic +
                ", minDiastolic=" + minDiastolic +
                ", maxSystolic=" + maxSystolic +
                ", maxDiastolic=" + maxDiastolic +
                ", bloodPressureInfo='" + bloodPressureInfo + '\'' +
                ", bloodPressureInfoList=" + bloodPressureInfoList +
                ", uploadTime=" + uploadTime +
                '}';
    }
}
